package com.cy.io;

import java.io.InputStream;

public class Resources {

    /**
     * 根据路径获取到输入流
     *
     * @param path
     * @return
     */
    public static InputStream getResourcesAsInputStream(String path) {
        return Resources.class.getClassLoader().getResourceAsStream(path);
    }

}
